﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="HL.IconPro.WelcomeWindow"
    xmlns:vm="clr-namespace:HL.IconPro.MVVM.ViewModels"
	x:Name="Window"
	Title="WELCOME TO ICON PRO"
	Width="458.343" Height="493.489" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" Icon="/HL.IconPro;component/Icon Pro.ico">
    <Window.DataContext>
        <vm:WelcomeWindowViewModel/>
    </Window.DataContext>
    <Window.Background>
        <SolidColorBrush Color="{DynamicResource WindowBackgroundColor}"/>
    </Window.Background>
    
    <Grid x:Name="LayoutRoot">
        <Label Content="WHAT WOULD YOU LIKE TO DO?" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="16" Margin="0,10,0,0"/>
        <StackPanel Margin="0,49,0,10" Width="341">
            <Button Content="EXTRACT AN ICON" Height="64" Margin="10,5,11,5" CommandParameter="{Binding Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Command="{Binding ExtractIconCommand, Mode=OneWay}" ToolTip="Extract an icon from an executable file (.exe, .dll)"/>
            <Button x:Name="CreateIcon" Content="CREATE AN ICON FROM IMAGE" Height="64" Margin="10,5,11,5" CommandParameter="{Binding Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Command="{Binding CreateAnIconFromImageCommand, Mode=OneWay}" ToolTip="Create an icon from a png image"/>
            <Button Content="CREATE AN EMPTY ICON" Height="64" Margin="10,5,11,5" CommandParameter="{Binding Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Command="{Binding CreateAnEmptyIconCommand, Mode=OneWay}" ToolTip="Create an empty icon">
            </Button>
            <Button Content="OPEN AN ICON FILE" Height="64" Margin="10,5,11,5" CommandParameter="{Binding Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Command="{Binding OpenAnIconFileCommand, Mode=OneWay}" ToolTip="Open an icon file"/>
            <Button Content="NOTHING" Height="64" Margin="10,5,11,5" CommandParameter="{Binding Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Command="{Binding NothingCommand, Mode=OneWay}" ToolTip="Exit application"/>
        </StackPanel>
    </Grid>
</Window>